import { Meta } from '@storybook/blocks';

import * as GridViewStories from '../stories/GridView.stories';

<Meta of={GridViewStories} />

# GridView

A scrollable, 2D array of widgets.

## Example

```dart liveslice=GridView mockup=iPhone7
GridView.count(
  primary: false,
  padding: const EdgeInsets.all(20.0),
  crossAxisSpacing: 10.0,
  crossAxisCount: 2,
  children: <Widget>[
    const Text('He\'d have you all unravel at the'),
    const Text('Heed not the rabble'),
    const Text('Sound of screams but the'),
    const Text('Who scream'),
    const Text('Revolution is coming...'),
    const Text('Revolution, they...'),
  ],
)
```

## Related Links

- https://api.flutter.dev/flutter/widgets/GridView-class.html
